#x210 Arm Linux
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_PROCESSOR "arm")

set(CROSS arm-none-linux-gnueabi)
set(CMAKE_C_COMPILER ${CROSS}-gcc)
set(CMAKE_CXX_COMPILER ${CROSS}-g++)
set(CMAKE_ASM_COMPILER ${CROSS}-as)
find_program(CMAKE_AR NAMES ${CROSS}-ar)
find_program(CMAKE_RANLIB NAMES ${CROSS}-ranlib)

mark_as_advanced(CMAKE_AR)
mark_as_advanced(CMAKE_RANLIB)

set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_STANDARD 11)

set(CMAKE_CXX_FLAGS "-mfloat-abi=softfp -mfpu=neon")
set(CMAKE_C_FLAGS "-mfloat-abi=softfp -mfpu=neon")
